<html>
<head><meta charset="utf-8"><title>Machine Code Generation · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Machine.20Code.20Generation.html">Machine Code Generation</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="211585165"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Machine%20Code%20Generation/near/211585165" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> HTGAzureX1212. <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Machine.20Code.20Generation.html#211585165">(Sep 29 2020 at 06:32)</a>:</h4>
<p>Hi there, how does the Rust compiler generate machine code from LLVM? I browsed through the repository, and there seem to be a custom "backend" for machine code generation from LLVM.</p>



<a name="211592233"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Machine%20Code%20Generation/near/211592233" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Machine.20Code.20Generation.html#211592233">(Sep 29 2020 at 08:16)</a>:</h4>
<p><code>compiler/rustc_codegen_ssa</code> has code that can be shared between codegen backends. <code>compiler/rustc_codegen_llvm</code> has all LLVM specific code.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>